POV-Ray : Newsgroups : povray.newusers : smooth mesh : smooth mesh Server Time
5 Sep 2024 06:20:13 EDT (-0400)
  smooth mesh  
From: Elias Pschernig
Date: 10 Aug 2001 01:00:12
Message: <3b736a5c@news.povray.org>
Is there a way to generate a smooth mesh without manually calculating the
normals first? (from within povray) I was thinking something like replacing
mesh with smooth_mesh, but only having normal triangles inside. If is't not
possible, I have another question (which might be a FAQ).. is it a good way
of calculating vertex normals, by adding all the normals of polygons sharing
that vertex, and then dividing by the number of normals?

Thanks

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.